package com.lxj.word.mapper;

import com.lxj.utils.entity.Word;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

public interface WordMapper {
    List<Word> findAll(Word word);

    Integer judge(@Param("id") Integer id,@Param("username") String username);

    Integer delete(@Param("id")Integer id,@Param("username") String username);

    Integer subtract(Integer id);

    int add(@Param("id")Integer id, @Param("username")String username);

    int addHeat(Integer id);

    int judgeCollect(@Param("id")Integer id,@Param("username") String username);

    int cancel(@Param("id")Integer id,@Param("username") String username);

    int collect(@Param("id")Integer id,@Param("username") String username);

    List<Integer> findLike(@Param("username") String username);

    List<Integer> findCollect(@Param("username") String username);

    List<Word> myCollect(Word word);

    int cancelCollect(@Param("id")Integer id,@Param("username") String username);

    List<Word> mySubmit(Word word);

    int newAdd(Word word);

    Word findById(Integer id);

    int deleteSub(Integer[] id);

    int edit(Word word);
}
